This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 13, 2011, 3:32 PM
7 Posts

In ApplicationLayout control, basicLeafNode onClick has no effect

  • Category: Extension Library
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 3
In the Application Layout control, I'm adding onClick properties to basicLeafNodes in the titleBarTabs section, but they appear to have no effect. I see that there is an onItemClick event handler for the Application Layout control itself, but setting it to full update, or partial update with various editable areas specified, has no effect either. What is the correct way to use the basicLeafNode onClick property?
Jun 13, 2011, 7:37 PM
261 Posts
Re: In ApplicationLayout control, basicLeafNode onClick has no effect
Hi,
 
I've been experimenting with the various treeNodes types and the onItemClick / onClick event too. One important thing I found out is that you need a recent build of the Extension Library. I've had some strange results (as in: not working) with earlier releases.

I got the onItemClick event finally working correctly. If you set the submitValue property on every leafNode, you can check in the onItemClick event what node was clicked. Sample code below. The sample include a server side and client side event handler. Just change it the way you need it.
 
Mark
 
<xe:linksList id="linksList1">

        <xe:this.treeNodes>
            <xe:basicLeafNode label="Node 1 label" submitValue="node1">
            </xe:basicLeafNode>
            <xe:basicLeafNode label="Node 2 label" submitValue="node2">
            </xe:basicLeafNode>
        </xe:this.treeNodes>

        <xp:eventHandler event="onItemClick" submit="true"
            refreshMode="complete" execMode="partial">
            <xp:this.action>

                <xp:executeScript>
                    <xp:this.script><![CDATA[#{javascript:switch (context.getSubmittedValue() ) {

    case "node1":
      //code to perform when node 1 is clicked
break;   
    case "node2":
      //code to perform when node 2 is clicked
break;   
}
}]]></xp:this.script>
                </xp:executeScript>


            </xp:this.action>
            <xp:this.script><![CDATA[alert("client side alert");]]></xp:this.script>
        </xp:eventHandler>

    </xe:linksList>
Jun 14, 2011, 1:48 PM
7 Posts
Re: In ApplicationLayout control, basicLeafNode onClick has no effect
Not working for me immediately, unfortunately. What version of the extension library are you using?
 
Thanks,

Mike
 
Jun 14, 2011, 7:22 PM
261 Posts
Re: In ApplicationLayout control, basicLeafNode onClick has no effect
The build from May 21st 2011.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal